package cc.xuzhi.muggle.devtools.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * 代码生成相关常量
 */
public interface DevtoolsConfigConstants {

    /**
     * 代码生成通用配置 CODE
     */
    String GEN_GENERAL_CONFIG = "GEN_GENERAL_CONFIG";
    String GEN_TABLE_PREFIX_CONFIG = "GEN_TABLE_";

    String NAME_GENERAL_CONFIG = "代码生成配置";

    /**
     * 代码生成通用配置 CLASS
     */
    String GEN_GENERAL_CONFIG_CLASS = "cc.xuzhi.muggle.devtools.model.config.GenGeneralConfig";

    /**
     * 配置code与class映射关系
     */
    Map<String, String> CONFIG_MAPPING = new HashMap<String, String>(){{
       this.put(GEN_GENERAL_CONFIG, GEN_GENERAL_CONFIG_CLASS);
    }};

    Map<String, String> NAME_MAPPING = new HashMap<String, String>(){{
        this.put(GEN_GENERAL_CONFIG, NAME_GENERAL_CONFIG);
    }};

}
